GtkMenuButton: use :toggled instead of :clicked
authorColomban Wendling <ban@herbesfolles.org>
Thu, 28 Jul 2016 22:39:30 +0000 (00:39 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 4 Aug 2016 21:31:42 +0000 (23:31 +0200)
commit64521345b9480cce790e0b299ffa20b44d9461ff
tree66ff14d3455556da3f65995c3d653ffd3ecbaf38
parent41be1e7e1fec1d744e70b8c6bc21b2ca3812e4e0
GtkMenuButton: use :toggled instead of :clicked

:toggled is triggered on :clicked, so using :toggled lead to the menu
to be popped up at the same time, while allowing to use the toggle state
and avoiding any need to a hack to prevent recursion, which somehow
wasn't enough for double emission of GtkMenuToolButton:show-popup.

https://bugzilla.gnome.org/show_bug.cgi?id=769287
gtk/gtkmenubutton.c